import { defineConfig } from "umi";
import routes from "./routes";
import { needProxy } from "./index";
import proxy from "./proxy";

export default defineConfig({
  nodeModulesTransform: {
    type: "none"
  },
  headScripts: [
    // {
    //   src: "/favicon.png"
    // }
  ],
  routes,
  fastRefresh: {},
  ignoreMomentLocale: false,
  proxy: needProxy,
  publicPath: process.env.publicPath || "./",
  history: { type: "hash" },
  dva: {},
  antd: {},
  hash: true,
  define: {
    "process.slot_login_url": "https://dev.xinc818.net/sso-system/",
    "process.slot_api_url": "https://api.dev.xinc818.net/"
  }
});
